﻿namespace MauiProject.Model.LinkFilePageModel;

using BootstrapBlazor.Components;
public class DrawComponent {
    public DrawFormData DrawFormData { get; set; } = new DrawFormData(); // 侧边栏表单数据
    public bool DrawOpenControl { get; set; } = false; // 侧边栏是否展开开关
    public string SelectedValue { get; set; } = "1"; // 选择框选中的值
    public DrawFormAbleControl DrawFormAbleControl { get; set; } = new(); // 侧边栏表单组件是否可用开关
    public IEnumerable<MenuItem> DrawMenuItems { get; set; } = new List<MenuItem>()
    {
        new(){ Text="重命名",Icon= "fa fa-folder", Id = "0", IsActive = true},
        new(){ Text="添加",Icon= "fa fa-folder", Id = "1"}
    }; // 选择框的选项
    public MyMessageOption MyMessageOption { get; set; } = new MyMessageOption();
    public IEnumerable<SelectedItem> DrawSelectItems { get; set; } = new[]
        {
        new SelectedItem ("1", "文件夹"),
        new SelectedItem ("0", "链接") { Active = true },
    };// 下拉框默认选项
}